PROJECT(gaiafb-widgets)

INCLUDE_DIRECTORIES( 
   ../lib
    ${CMAKE_CURRENT_BINARY_DIR}
)

SET(lib_SOURCES 
    widgets.cpp
    main_window.cpp
    label.cpp
    status_label.cpp
    dialog.cpp
    vertical_dialog.cpp
    line_edit.cpp
    field_label.cpp
    labelled_line_edit.cpp
    labelled_text_edit.cpp
    widget_panel.cpp
    spin_box.cpp
    labelled_spin_box.cpp
    text_edit.cpp
    error_dialog.cpp
    log_widget.cpp
    standard_item_model.cpp
    tree_view.cpp
    workspace.cpp
    standard_item.cpp    
    entity_item.cpp
    group_item.cpp
    entity_html_viewer.cpp
    tree_model.cpp
    menu.cpp
    tree_view_context_menu.cpp
    editor_dialog.cpp
    group_box.cpp
    grid_group_box.cpp
    tab_widget.cpp
    data_editor.cpp
)

SET(lib_HEADERS
    widgets.hpp
    standard_item.hpp
    entity_item.hpp
)

SET(lib_MOC_SRCS
	main_window.hpp
	label.hpp
	status_label.hpp
        dialog.hpp
        vertical_dialog.hpp
        line_edit.hpp
        field_label.hpp
        labelled_line_edit.hpp
        labelled_text_edit.hpp
        widget_panel.hpp
        spin_box.hpp
        labelled_spin_box.hpp
        text_edit.hpp
        error_dialog.hpp
        log_widget.hpp
        standard_item_model.hpp
        tree_view.hpp
        workspace.hpp
        entity_html_viewer.hpp
        tree_model.hpp
        menu.hpp
        tree_view_context_menu.hpp
        editor_dialog.hpp
        group_box.hpp
        grid_group_box.hpp
        tab_widget.hpp
        data_editor.hpp
)

SET(lib_RESOURCES 
    icons.qrc
)

QT4_WRAP_CPP(lib_SOURCES ${lib_MOC_SRCS})
QT4_ADD_RESOURCES(lib_RESOURCES_RCC ${lib_RESOURCES})

ADD_LIBRARY(gaiafb-widgets 
    ${lib_SOURCES} 
    ${lib_RESOURCES_RCC}
)
